<?php
include_once (APPPATH.'libraries/Hoop_Memcache.php');

//memcache主机
function getMemcache() 
{
	if (! isset( $GLOBALS['memcache'] ))
	{
		$memcache = new Hoop_Memcache();
		$memcache->connect("192.168.0.71",12000);
		$GLOBALS['memcache'] = $memcache;
	}
	return $GLOBALS['memcache'];
}
